<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Discuss extends Model
{
    //
    protected $guarded = [];

    public function author()
    {
        return $this->belongsTo('App\User','userid');
    }

    public function task()
    {
        return $this->belongsTo('App\Task','taskid');
    }
}
